<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>with标签</title>
    <link rel="stylesheet" href="../../static/css/index.css">
</head>
<body>
<div class="main">
    {#    {% with book1=books.1 %}#}
    {% with books.1 as book1 %}
        <p>{{ book1.name }}:{{ book1.author }}</p>
    {% endwith %}
</div>

</body>
</html>